package com.beta.nfc_beta;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.util.Log;
import android.view.KeyEvent;
import android.view.Menu;
import android.widget.TextView;
import android.widget.Toast;

public class ShowMifareActivity extends Activity {
	private TextView tv;
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_show_mifare);
		
		tv=(TextView)this.findViewById(R.id.show_mifare);
		Intent intent=this.getIntent();
		String msg=intent.getStringExtra("msg");
		//Log.d("ShowMifareActivity", msg);
		tv.setText(msg);
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.show_mifare, menu);
		return true;
	}
	
	@Override
	public boolean onKeyDown(int keyCode, KeyEvent event){
		if(keyCode == KeyEvent.KEYCODE_BACK && event.getAction() == KeyEvent.ACTION_DOWN){ 
			this.finish(); 
			return true; 
		} 
		return super.onKeyDown(keyCode, event); 
	}

}
